# Maintainer: Dylan Van Assche <me@dylanvanassche.be>
# Contributor: Dylan Van Assche <me@dylanvanassche.be>
pkgname=libssc
pkgver=0.1.4
pkgrel=0
pkgdesc="Library to expose Qualcomm Sensor Core sensors"
url="https://codeberg.org/DylanVanAssche/libssc"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	eudev-dev
	glib-dev
	libgudev-dev
	linux-headers
	libqmi-dev
	meson
	protobuf-c-dev
"
options="!check" # no tests yet
subpackages="$pkgname-dbg $pkgname-dev"
builddir="$srcdir/$pkgname"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/DylanVanAssche/libssc/archive/$pkgver.tar.gz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}


sha512sums="
92af4c468a9cbe22c10278e2c7b334da6edb1eed4472f4df23afdd4f27f65499774f4f3d29329adcf9851a0b44fcefa953510e295651a861bd3fa584c09f0124  libssc-0.1.4.tar.gz
"
